package com.kede.api.stand.dto;

import com.kede.domain.ZhiCategoryDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author:Pr.li
 * @Date: create in 2023/7/9 13:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CateDTO {

    public CateDTO(List<ZhiCategoryDomain> list){
        if(list.size() > 0){
            this.group = list.get(0).getGroup();
        }
        this.list = list;
    }

    String group;

    List<ZhiCategoryDomain> list;

}
